loStr = stripCommas(item 1 of the text of field "low field")
hiStr = stripCommas(item 1 of the text of field "high field")
the itemDelimiter = oldDelimiter
if not ((loStr = EMPTY) or (loStr = " ") or (hiStr = EMPTY) or (hiStr = " ")) then
min = value(loStr)
max = value(hiStr)
end if
if voidp(min) or voidp(max) then
tell the stage
openAlertWindow("okalert", rect(0, 0, 320, 171), "Invalid values were entered for the y-axis range. Enter numbers for the highest and lowest y-values or choose computer generated y-axis range.")
end tell
else
if min >= max then
tell the stage
openAlertWindow("okalert", rect(0, 0, 320, 171), "The highest value must be larger than the lowest value.")